﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using QzEbook.BaseView;

public partial class admin_getPassword :OutUserPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void sendNameBtn_Click(object sender, EventArgs e)
    {
        string mail = mailTb.Text.Trim();
        if (mail.Length < 3||mail.IndexOf("@")<0)
        {
            alert("邮箱不正确");
            return;
        }

        ForgotPassord forgot = new ForgotPassord();
        forgot.Email = mail;
        forgot=forgot.select();
        if (forgot.Count == 0)
        {
            alert("不存在此用户");
            return;
        }
        alert(forgot.UserName);

    }
}
